from tortoise.contrib.test import finalizer, initializer
import pytest

@pytest.fixture(scope="module", autouse=True)
def initialize_tests(request):
    db_url = "postgres://postgres:pg@192.168.1.15:5432/test_blog"
    initializer(["blog.models"], db_url=db_url, app_label="blog")
    request.addfinalizer(finalizer)
